package top.yangbuyi.dto;


import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.format.annotation.DateTimeFormat;
import top.yangbuyi.domain.SimpleUser;

import java.io.Serializable;
import java.util.Date;

/**
 * @description: 杨不易网站:www.yangbuyi.top
 * @program: yangbuyiopenHis2020
 * @ClassName: BaseDto
 * @create: 2020-08-27 20:24
 * @author: yangbuyi
 * @since： JDK1.8
 * @BaseDto: 基础数据传输类$
 **/

public class BaseDto  implements Serializable {
	  /**
	   * 页码 默认1
	   */
	  private Integer pageNum = 1;

	  /**
	   * 每页显示条数 默认10
	   */
	  private Integer pageSize = 10;

	  /**
	   * 当前操作对象
	   */
	  private SimpleUser simpleUser;

	  /**
	   * 开始时间
	   * 接收前台转换到后台
	   */
	  //@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	  private String beginTime;
	  /**
	   * 结束时间
	   * 接收前台转换到后台
	   */
	  //@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	  private String endTime;


	  public Integer getPageNum() {
			return pageNum;
	  }

	  public void setPageNum(Integer pageNum) {
			this.pageNum = pageNum;
	  }

	  public Integer getPageSize() {
			return pageSize;
	  }

	  public void setPageSize(Integer pageSize) {
			this.pageSize = pageSize;
	  }

	  public SimpleUser getSimpleUser() {
			return simpleUser;
	  }

	  public void setSimpleUser(SimpleUser simpleUser) {
			this.simpleUser = simpleUser;
	  }

	  public String getBeginTime() {
			return beginTime;
	  }

	  public void setBeginTime(String beginTime) {
			this.beginTime = beginTime;
	  }

	  public String getEndTime() {
			return endTime;
	  }

	  public void setEndTime(String endTime) {
			this.endTime = endTime;
	  }

	  @Override
	  public String toString() {
			return "BaseDto{" +
					"pageNum=" + pageNum +
					", pageSize=" + pageSize +
					", simpleUser=" + simpleUser +
					", beginTime=" + beginTime +
					", endTime=" + endTime +
					'}';
	  }
}
